import request from "@/utils/request";
export function insertGoods(data) {
  return request({
    url: "/commerce-goods/insert",
    method: "post",
    data: data
  });
}
export function updateGoods(data) {
  return request({
    url: "/commerce-goods/update",
    method: "post",
    data: data
  });
}
export function deleteGoods(data) {
  return request({
    url: "/commerce-goods/delete",
    method: "post",
    data: data
  });
}
export function deletesGoods(data) {
  return request({
    url: "/commerce-goods/deletes",
    method: "post",
    data: data
  });
}
export function enableGoods(data) {
  return request({
    url: "/commerce-goods/enable",
    method: "post",
    data: data
  });
}
export function enablesGoods(data) {
  return request({
    url: "/commerce-goods/enables",
    method: "post",
    data: data
  });
}
export function disableGoods(data) {
  return request({
    url: "/commerce-goods/disable",
    method: "post",
    data: data
  });
}
export function disablesGoods(data) {
  return request({
    url: "/commerce-goods/disables",
    method: "post",
    data: data
  });
}
export function upGoods(data) {
  return request({
    url: "/commerce-goods/up",
    method: "post",
    data: data
  });
}
export function upsGoods(data) {
  return request({
    url: "/commerce-goods/ups",
    method: "post",
    data: data
  });
}
export function downGoods(data) {
  return request({
    url: "/commerce-goods/down",
    method: "post",
    data: data
  });
}
export function downsGoods(data) {
  return request({
    url: "/commerce-goods/downs",
    method: "post",
    data: data
  });
}
export function viewGoods(params) {
  return request({
    url: "/commerce-goods/view",
    method: "get",
    params: params
  });
}
export function pageGoods(params) {
  return request({
    url: "/commerce-goods/page",
    method: "get",
    params: params
  });
}
export function searchGoods(params) {
  return request({
    url: "/commerce-goods/search",
    method: "get",
    params: params
  });
}
